function [ net ] = constructNet( INPUT_LENGTH, OUTPUT_LENGTH, LAYERS, ACTIVATION_TYPE )
%CONSTRUCTNET Summary of this function goes here
%   Detailed explanation goes here

global HIDDEN_NEURONS;

    EXP = 1;
    TANH = 2;

    input = INPUT_LENGTH + 1; %+1 por el umbral

    i = 1;
    while( i< LAYERS)
        %se agrega el umbral
        output = HIDDEN_NEURONS;%2n+1
        if ACTIVATION_TYPE == TANH
            net{i} = rand(output,input) - 0.5;
        else
            net{i} = abs(rand(output,input)-0.5);
        end

        input = output + 1;
        i = i+1;

    end



    if ACTIVATION_TYPE == TANH
            net{LAYERS} = rand(OUTPUT_LENGTH,input) - 0.5;
        else
            net{LAYERS} = abs(rand(OUTPUT_LENGTH,input) - 0.5);
    end
end

 


